<html><head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>在线收款</title>
    
      <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">

      <link href="./css/bootstrap.min.css" rel="stylesheet">
      <link rel="stylesheet" href="./css/bootstrap.min(1).css">
	  <script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="js/layer.js"></script>

	  <script type="text/javascript">
	 //   function gopay(type){
	 //     $("#type").val(type);
	 //     var form = document.getElementById('form1');
	 //     if(isWeixin==1 || isMobile()==1){
	  //    	form.target='';
	  //    }else{
	  //      form.target='_blank';
	  //    }
	  //    form.submit();
	  //}
	
	window.onload = function() {
     var tick = new Date().getTime();
        
     document.getElementById("orderid").value=tick;

	}
	
	
	function to_change(type) {
		var obj = document.getElementsByName('paytype');
		var form = document.getElementById('form1');
				if (type == '支付宝') {
					document.getElementById('acc_type').value = '1';
					if(isWeixin())
					{
						alert('请点开右上角用浏览器打开,或者用支付宝进行扫描！');
						return false;
					}
				}
				else if (type == '支付宝2') {
					document.getElementById('acc_type').value = '0';
					if(isWeixin())
					{
						alert('请点开右上角用浏览器打开,或者用支付宝进行扫描！');
						return false;
					}
					
				}
				else if (type == 'QQ') {
					document.getElementById('type').value = 'qq';
					
				} else if (type == '微信') {
					document.getElementById('type').value = 'wechat';
					
				}
				
		
		form.submit();
	}
	
	
	
    function isWeixin() {
        var ua = window.navigator.userAgent.toLowerCase();
        if (ua.match(/MicroMessenger/i) == 'micromessenger') {
            return 1;
        } else {
            return 0;
        }
    }

    function isMobile() {
        var ua = navigator.userAgent.toLowerCase();
        _long_matches = 'googlebot-mobile|android|avantgo|blackberry|blazer|elaine|hiptop|ip(hone|od)|kindle|midp|mmp|mobile|o2|opera mini|palm( os)?|pda|plucker|pocket|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino|maemo|fennec';
        _long_matches = new RegExp(_long_matches);
        _short_matches = '1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-';
        _short_matches = new RegExp(_short_matches);
        if (_long_matches.test(ua)) {
            return 1;
        }
        user_agent = ua.substring(0, 4);
        if (_short_matches.test(user_agent)) {
            return 1;
        }
        return 0;
    }
  </script>
  <link rel="icon" href="favicon.ico" type="image/x-icon">
  <script src="./js/bootstrap.min.js"></script>
  </head><body><div class="container" style="padding-top:70px;">
    <div class="col-xs-12 col-sm-10 col-lg-8 center-block" style="float: none;">
      <div class="panel panel-primary">
        <div class="panel-body">
        <form name="alipayment" id="form1" action="pay_skm.php" method="post">
            <input type="hidden" name="payType" id="payType" value="2">
            <input type="hidden" name="userid" id="userid" value="79772">
            <input type="hidden" name="bankkey" id="bankkey" value="">
            <input type="hidden" name="acc_type" id="acc_type" value="1">
            <div class="input-group">            
              <span class="input-group-addon"><span class="glyphicon glyphicon-barcode">订单号码：</span></span>
               <input size="30" maxlength="12" name="orderid" id="orderid" value="" class="form-control" placeholder="商户订单号">
               </div>
            <br>
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-shopping-cart">商品名称：</span></span>
              <input size="30" name="remark" value="收款码" class="form-control" placeholder="商品名称" required="required">               
            </div>
            <br>
            <div class="input-group">
              <span class="input-group-addon"><span class="glyphicon glyphicon-yen"></span>金额：</span>
              <input size="30" id="amount" name="amount" value="0.01" class="form-control" placeholder="付款金额" required="required">                   
            </div>                  
			<br> 
			<center>
			<div class="btn-group btn-group-justified" role="group" aria-label="...">
			  <div class="btn-group" role="group">
			    <input type="button" value="支付宝(个人)" name="paytype" class="btn btn-primary" onclick="to_change('支付宝')">
			  </div>
			  <div class="btn-group" role="group">
			    <input type="button" value="支付宝(商户)" name="paytype" class="btn btn-success" onclick="to_change('支付宝2')">
			  </div>
			  <div class="btn-group" role="group" style="display:none">
			    <input type="button" value="QQ" name="paytype" class="btn btn-success" onclick="to_change('QQ')">
			  </div>
			  <div class="btn-group" role="group" style="display:none">
			    <input type="button" value="微信" name="paytype" class="btn btn-info" onclick="to_change('微信')">
			  </div>
			</div>
<!--				<p style="text-align:center"><br>© 技术支持 QQ: 56248 </p>
								<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=56248&site=qq&menu=yes">
									<img border="0" src="http://wpa.qq.com/pa?p=2:56248:51" alt="业务咨询" title="业务咨询"/></a>
-->
				<br>
          <div style="color: #000;font-size: 1.5rem;text-align: center;" onclick="share()">
                        保存二维码
           </div>
           <div class="social-share1" style="text-align:center; display:none;" id="shareDiv" >
               <img id="testimg" style="float:right;cursor:pointer" alt="" width="300" height="300" onclick="hideme()"/>  
           </div> 

				</center>
				</form>
				</div>
			 </div>
          

        </div>
      </div>      
    
  


<script type="text/javascript">
	document.body.onclick=function(){ 
			
	}; 
	function	RandPrice()
		{
				document.getElementById("amount").value=Math.random().toFixed(2);
		}
	function share()
	{  
	
        $("#testimg").attr("src","http://qr.liantu.com/api.php?text="+ window.location.href);
        layer.open({
              type: 1,
              skin: '', //样式类名
              title:false,
              offset: 'auto',
              area: ['300px', '300px'], //宽高
              closeBtn: 0, //不显示关闭按钮
              shade: 0,
              anim: 2,
              shadeClose: true, //开启遮罩关闭
              content: $("#shareDiv")
            });

    }
		
		function	hideme()
		{
			layer.close(layer.index);
		}
		RandPrice();
</script>
	
</html>